package cn.javass.dp.factorymethod.demo2;

//创建工厂的创建器
public abstract  class Creator {
    abstract Product factoryMethod();
}

interface Product{} //需要被创建的对象接口

class ConcreteCreator extends Creator {

    @Override
    Product factoryMethod() {
        return null;
    }
}

class ConcreteProduct implements Product {

}